package com.ddzh.service;

import com.ddzh.mapper.UserMapper;
import com.ddzh.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class USerService {

    @Autowired
    private UserMapper userMapper;

    public User findUserById(String username){
        //根据用户名查找用户信息
        User user = userMapper.findUserById(username);
        return user;
    }
}
